package tcdx.uap.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import tcdx.uap.common.entity.page.TableDataInfo;
import tcdx.uap.common.utils.MapUtils;
import tcdx.uap.common.utils.SqlUtil;
import tcdx.uap.mapper.BaseDBMapper;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/uap/form/")
public class FormController {


    @Autowired
    BaseDBMapper baseDBMapper;


    @PostMapping("/getFormById")
    @ResponseBody
    public List<Map> getFormById(int id)
    {
        Map<String, Object> combine = MapUtils.Combine(
                MapUtils.New("tn", "tcdx_form_field"),
                MapUtils.New("tn", "tcdx_form_field")
        );
        return baseDBMapper.selectEq(combine);
    }

}
